package com.gj.costprice.EnumPackage;

/**
 * Created by Administrator on 2021-06-24.
 */
public enum CurrencyEnum {
    c(0,"人民币"),m(1,"美元"),o(2,"欧元-");
    private Integer currencyCode;
    private String currencyCodeName;

    public String getcurrencyCodeName() {
        return currencyCodeName;
    }
    public Integer getcurrencyCode() {
        return currencyCode;
    }

    CurrencyEnum(Integer currencyCode, String currencyCodeName) {
        this.currencyCode = currencyCode;
        this.currencyCodeName = currencyCodeName;
    }

    public static String getcurrencyCodeName(Integer currencyCode){
        for (CurrencyEnum c: CurrencyEnum.values()) {
            if(c.getcurrencyCode()==currencyCode)
                return c.getcurrencyCodeName();
        }
        return  null;
    }


}
